package com.feilo.util;

import java.io.InputStream;
import java.util.Properties;

public final class ProReader extends Properties {

	private static final long serialVersionUID = -5364474832948004235L;
	
	private static ProReader instance;
	
	public static ProReader getInstance() {
		if (instance != null) {
			return instance;
		} else {
			makeInstance();
			return instance;
		}
	}
	private static synchronized void makeInstance() {
		if (instance == null) {
			instance = new ProReader();
		}
	}

	/**
	 * 私有构�?方法
	 */
	private ProReader() {
		InputStream is = getClass().getResourceAsStream("/constants.properties");
		try {
			load(is);
		} catch (Exception e) {
			return ;
		}
	}
}
